<template>
  <div class="main">
    <div @click="goBack" class="back">
      <img src="../images/phone_back.png"/>
    </div>
    <div class="phone">
      <h3>了解更多信息</h3>
      <button class="btn_phone"><a v-bind:href='tel'>拨打电话</a></button>
      <div class="number">
        <div class="phone_number">
          <p>0571-86020207</p>
          <p>0571-88387680</p>
        </div>
      </div>
    </div>
    <!--地址部分-->
    <div class="address">
      <h4>杭州云耐信息技术有限公司</h4>
      <ul>
        <li>地址:杭州下城区善贤路4号3楼351~364室</li>
        <li>邮箱:wyzxlyl@163.com</li>
      </ul>
      <img src="../images/erweima.jpg"/>
    </div>
  </div>
</template>
<style>
  body {
    /*background-color: #f2f0f1;*/
  }

  /*电话部分*/
  .main {
    position: relative;
  }

  .back {
    position: absolute;
    left: 3.5%;
    top: -5px;
    cursor: pointer;
  }

  .phone {
    width: 90%;
    height: 250px;
    border: 2px solid #d5d7dc;
    border-radius: 10px;
    margin-left: 5%;
    text-align: center;
  }

  .phone h3 {
    text-align: center;
    font-size: 16px;
    color: #403e3f;
  }

  .btn_phone {
    width: 100px;
    height: 36px;
    background: #00a2e9;
    border-radius: 8px;
    outline: none;
    border: none;
    margin-top: 10px;
  }

  .btn_phone a {
    color: #fff;
    text-decoration: none
  }

  .btn_phone a:visited {
    color: #fff;
    text-decoration: none
  }

  .number {
    background: url("../images/phone_icon.png") no-repeat;
    /*width: 50%;*/
    height: 50px;
    background-position: 50px;
    background-size: 60px 50px;
    margin-top: 30px;
  }

  .number .phone_number {
    margin-left: 20%;
    font-weight: bold;
    color: #1b1e21;
  }

  .address {
    margin-top: 30px;
  }

  .address h4 {
    font-size: 16px;
    text-align: center;
    color: #464a4e;
  }

  .address ul {
    list-style: none;
    font-size: 12px;
    line-height: 24px;
    margin-left: 35px;
    color: #6c757d;
  }

  .address img {
    width: 100px;
    height: 100px;
    margin-left: 40%;
    margin-top: 10px;
  }
</style>
<script>
  export default {
    name: 'phone',
    data() {
      return {
        tel: 'tel:0571-86020207'
      }
    },
    methods: {
      goBack() {
        this.$router.go(-1)
      }
    }
  }
</script>
